from odoo import api, models, fields
from odoo.tools import date_utils


class nbd_tarcompany(models.Model):
    _name = 'nbd.tarcompany'
    _description = 'NBD标的公司'

    name = fields.Char(string='Company Name', required=True)
    address = fields.Char(string='Address')
    legal_representative = fields.Char(string='Legal Representative')
    registered_capital = fields.Char(string='Registered Capital')
    website = fields.Char(string='Official Website')
    establishment_date = fields.Date(string='Establishment Date')
    unified_social_credit_code = fields.Char(string='Unified Social Credit Code')
    main_contact_name = fields.Char(string='Main Contact Name')
    main_contact_phone = fields.Char(string='Main Contact Phone/Landline')
    main_contact_email = fields.Char(string='Main Contact Email')
    other_contact_name = fields.Char(string='Other Contact Name')
    other_contact_phone = fields.Char(string='Other Contact Phone')
    other_contact_email = fields.Char(string='Other Contact Email')
    task_id = fields.Many2one(
        comodel_name='project.task',
        string='taskid'
    )